package com.example.springmvc_demo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Slf4j
@Controller
@RequestMapping("/api")
public class HelloController {
    @RequestMapping("/hello2")
    public String hello() {
        log.info("hello2");
        return "/zuoye7.html";
    }
   // @RequestMapping(value = "/hello2",method = RequestMethod.POST)
   // public String hello3() {
       // log.info("hello3");
       // return "/zuoye7.html";
   // }
   // @RequestMapping(value = "/hello2",params = "name")
   // public String hello4() {
       // log.info("hello4");
       // return "/zuoye7.html";
    //}
}
